﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="ListarProductos.aspx.cs" Inherits="CapaPresentacion.ListarProductos" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title></title>
    <style type="text/css">
        .style1
        {
            width: 40px;
        }
        .style5
        {
            width: 190px;
        }
        .style7
        {
            height: 30px;
        }
        .style14
        {
            width: 40px;
            height: 32px;
        }
        .style15
        {
            width: 190px;
            height: 32px;
        }
        .style16
        {
            height: 32px;
        }
        .style17
        {
            width: 40px;
            height: 29px;
        }
        .style18
        {
            width: 190px;
            height: 29px;
        }
        .style19
        {
            height: 29px;
        }
    </style>
</head>
<body>
    <form id="form1" runat="server">
    <div style="height: 613px">
    
       
        <center>
            <br />
            
            <table style="width: 59%; height: 64px;">
                <tr>
                    <td class="style7">
                        INSERTAR PRODUCTOS</td>
                </tr>
            </table>
           <asp:Panel ID="Panel1" runat="server" Height="249px" Width="558px">
                <table style="width:100%; height: 251px;">
                    <tr>
                        <td class="style17">
                            Producto</td>
                        <td class="style18">
                            <asp:TextBox ID="txtIdProducto" runat="server" Width="255px"></asp:TextBox>
                        </td>
                        <td class="style19">
                            </td>
                    </tr>
                    <tr>
                        <td class="style1">
                            <asp:Label ID="Label2" runat="server" Text="Nombre:"></asp:Label>
                        </td>
                        <td class="style5">
                            <asp:TextBox ID="txtNombre" runat="server" Width="255px"></asp:TextBox>
                        </td>
                        <td>
                            </td>
                    </tr>
                    <tr>
                        <td class="style1">
                            <asp:Label ID="Label3" runat="server" Text="Descripción:"></asp:Label>
                        </td>
                        <td class="style5">
                            <asp:TextBox ID="txtDescripcion" runat="server" Width="255px"></asp:TextBox>
                        </td>
                        <td>
                            &nbsp;</td>
                    </tr>
                    <tr>
                        <td class="style14">
                            <asp:Label ID="Label4" runat="server" Text="Precio:"></asp:Label>
                        </td>
                        <td class="style15">
                            <asp:TextBox ID="txtPrecio" runat="server" style="margin-right: 6px" 
                                Width="255px"></asp:TextBox>
                        </td>
                        <td class="style16">
                            </td>
                    </tr>
                    <tr>
                        <td class="style1">
                            <asp:Label ID="Label5" runat="server" Text="Stock:"></asp:Label>
                        </td>
                        <td class="style5">
                            <asp:TextBox ID="txtStock" runat="server" Width="255px"></asp:TextBox>
                        </td>
                        <td>
                            &nbsp;</td>
                    </tr>
                    <tr>
                        <td class="style1">
                            <asp:Label ID="Label6" runat="server" Text="Foto:"></asp:Label>
                        </td>
                        <td class="style5">
                            <asp:TextBox ID="txtFoto" runat="server" Width="255px"></asp:TextBox>
                        </td>
                        <td>
                            &nbsp;</td>
                    </tr>
                    <tr>
                        <td class="style1">
                            <asp:Label ID="Label7" runat="server" Text="Categoría:"></asp:Label>
                        </td>
                        <td class="style5">
                            <asp:DropDownList ID="cboCategoria" runat="server" Height="16px" Width="204px" 
                                AutoPostBack="True" 
                                onselectedindexchanged="cboCategoria_SelectedIndexChanged">
                            </asp:DropDownList>
                        </td>
                        <td>
                            &nbsp;</td>
                    </tr>
                    <tr>
                        <td class="style1">
                            <asp:Button ID="btnNuevo" runat="server" Text="Nuevo" Width="119px" />
                        </td>
                        <td class="style5">
                            <asp:Button ID="btnGrabar" runat="server" Text="Grabar" Width="119px" />
                        </td>
                        <td>
                            <asp:Button ID="btnBuscar" runat="server" Text="Buscar" Width="119px" />
                        </td>
                    </tr>
                </table>

                 <center>
                     LISTADO PRODUCTO<br />
        <asp:GridView ID="gvProductos" runat="server" AutoGenerateColumns="False" 
            Height="187px" Width="558px" CellPadding="4" ForeColor="#333333" 
                GridLines="None" style="margin-top: 0px">
            <AlternatingRowStyle BackColor="White" />
            <Columns>
                <asp:BoundField DataField="IdProducto" HeaderText="Producto" />
                <asp:BoundField DataField="Nombre" HeaderText="Nombre" />
                <asp:BoundField DataField="Descripcion" HeaderText="Descripcion" />
                <asp:BoundField DataField="Precio" HeaderText="Precio" />
                <asp:BoundField DataField="Stock" HeaderText="Stock" />
                <asp:BoundField DataField="IdCategoria" HeaderText="Categoria" />
            </Columns>
            <EditRowStyle BackColor="#2461BF" />
            <FooterStyle BackColor="#507CD1" Font-Bold="True" ForeColor="White" />
            <HeaderStyle BackColor="#507CD1" Font-Bold="True" ForeColor="White" />
            <PagerStyle BackColor="#2461BF" ForeColor="White" HorizontalAlign="Center" />
            <RowStyle BackColor="#EFF3FB" />
            <SelectedRowStyle BackColor="#D1DDF1" Font-Bold="True" ForeColor="#333333" />
            <SortedAscendingCellStyle BackColor="#F5F7FB" />
            <SortedAscendingHeaderStyle BackColor="#6D95E1" />
            <SortedDescendingCellStyle BackColor="#E9EBEF" />
            <SortedDescendingHeaderStyle BackColor="#4870BE" />
        </asp:GridView>

            </asp:Panel>
        </center>
        </center>
    </div>
    </form>
</body>
</html>
